package io_homework;

import java.io.*;
import java.nio.charset.StandardCharsets;


public class ReadString1 {
    public static void main(String[] args) throws IOException {
        File file =new File("fos.txt");
        FileInputStream fis = new FileInputStream("fos.txt");
        byte[]data = new byte[(int)file.length()];
        fis.read(data);
        String line = new String(data,StandardCharsets.UTF_8);
        System.out.println(line);
        fis.close();


    }
}
